package com.kreao.korean.service.interfaces;

import com.kreao.korean.entity.User;

/**
 * 用户服务接口
 */
public interface UserService {
    
    /**
     * 根据ID获取用户
     */
    User getUserById(Long userId);
    
    /**
     * 更新用户信息
     */
    User updateUser(Long userId, User userRequest);
    
    /**
     * 获取用户学习概况
     */
    UserOverview getUserOverview(Long userId);
    
    /**
     * 用户概况信息
     */
    record UserOverview(
        User user,
        Long totalWords,
        Long studyDays,
        Double accuracy,
        Long todayStudyCount,
        Long favoriteWords
    ) {}
} 